typedef struct photo_head{
	int type;
	int length;
	int x;
	int y;
	int ccount;
} head;

typedef struct photo_color{
	unsigned char red;
	unsigned char green;
	unsigned char blue;
	unsigned char alpha;
	int index;
	struct photo_color* next;
} color;

typedef struct photo_content{
	head head;
	color* colors;
	int* pixels; 
} photo;

photo* new(int x,int y);
int newColor(unsigned char r,unsigned char g ,unsigned char b,unsigned char a,photo* new_photo);
void setBg(int color,photo* new_photo);
void point(int x,int y,int color,photo* new_photo);
void line(int x_start,int y_start,int x_end,int y_end,int color,photo* new_photo);

